import request from '@/util/request'

export async function getAllShops() {
    return await request.get('/shops/getAllShops');
} 

export async function saveShop(shopInfo) {
    return await request.post('/shops/saveShop', shopInfo);
} 

export async function getShop(shopInfo) {
    return await request.get(`/shops/getShop?name=${shopInfo.name}&code=${shopInfo.code}`, );
} 